package gemini.castor.ui.server.service.impl;

import gemini.basic.manager.DistributorManager;
import gemini.basic.model.MonthlyPoint;
import gemini.castor.ui.client.service.MonthlyPointService;
import gemini.castor.ui.server.service.AbstractSingleService;

import java.util.List;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

public class MonthlyPointServiceImpl extends
        AbstractSingleService<DistributorManager> implements
        MonthlyPointService {

    @SuppressWarnings("unused")
	private final Log logger = LogFactory
            .getLog(MonthlyPointServiceImpl.class);

	@Override
	public List<MonthlyPoint> getMonthlyPointByDistributorCodeAndYear(
			String code, int year) {
		List<MonthlyPoint> result = duplicateExcludeFields(getServerManager().getMonthlyPointByDistributorCodeAndYear(code, year));
		return result;
	}

	@Override
	public List<Integer> getAllYearByDistributorCode(String code) {
		List<Integer> result = getServerManager().getAllYearByDistributorCode(code);
		return result;
	}
}
